package com.example.mac.yuejian14.service;

import java.util.List;

import com.example.mac.yuejian14.bean.MatchBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/25.
 */

public interface MatchService {

    //获取比赛列表接口
    @GET("Match/getMatchList")
    Call<List<MatchBean>> getMatchList();
    @GET("Match/getMatchById")
    Call<MatchBean>getMatchById(@Query("matid") String matid);

    @GET("Match/getMatchBySearch")
    Call<List<MatchBean>> getMatchBySearch(@Query("keyword") String matname);

    @GET("Match/addMatch")
    Call<MatchBean> addMatch(@Query("uid") int uid, @Query("matid") int matid);
}
